package
{
	import MVC.controller.Checklogincommand;
	import MVC.controller.Startcommand;
	
	import View.UIComponent.UIButton;
	
	import org.puremvc.as3.interfaces.IFacade;
	import org.puremvc.as3.patterns.facade.Facade;

	public class MyApplication extends Facade implements IFacade
	{
		public  static const START_APP_UP:String="start_app_up";
		public  static const SATRT_APP_COMPLETE:String="start_app_complete";
		public function MyApplication() 
		{
			super();
		}
		public static function getInstance():MyApplication
		{
			if(!instance)
			{
				instance=new MyApplication();
			}
			return instance as MyApplication;
		}
		override protected function initializeController():void
		{
			super.initializeController();
			registerCommand(START_APP_UP,Startcommand);
			registerCommand(SATRT_APP_COMPLETE,Checklogincommand);
		}
		public function startUp(app:Object):void
		{
			sendNotification(START_APP_UP,app);
		}
	}
}